﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace StudentsClassExamle
{
    class Program
    {
        static void Main(string[] args)
        {
            List<Student> students = new List<Student>();
            string choise = "N";
            do
            {
                Console.Clear();
                Console.WriteLine("Введитете данные о студенте: ");
                Student student = new Student();
                student.AddUserInfo();
                students.Add(student);
                Console.WriteLine("Будете еще добавлять? (Y/N)");
                choise = Console.ReadLine().ToUpper();
            } while (choise=="Y");

            foreach (var student in students)
            {
                if(student.AvergeMark() >= 67)
                    student.PrintInfo();
            }

        }
    }
}
